keep k==1 k==2 k==3 before n==2 condition
Brilliant!
Thankyou so much. 
AC finally :’)
1 Like
got AC after that…
welcome 
thank you so much bro 
I think you figured out correct soln… didn’t u ??
Try checking the test cases I gave above and then do let me know if u didn’t found any mistake
Thank you so much bro… That feels very good… 
Was my first editorial 
Thank you so much 
Such comments from u guys really appreciates me to help people who need help and to write more editorials 