The main idea of finding the flag is Buffer Overflow.
I checked out this writeup to get the flag and understand the method of solving.
https://n00bmaster.me/posts/CTFLearn_Easy_Pwn/
Finally, the flag becomes:
CTFlearn{c0ntr0ling_r1p_1s_n0t_t00_h4rd_abjkdlfa}