it is segmentation fault question .Based on "Return oriented programming (ROP)We have to calll a function (shell) by overflowing bueffer click the below link to see complete write up with photo implementation.
https://github.com/d4rkvaibhav/IceCTF-2018/tree/master/Binary%20exploit/CAVE-50pts