I am getting partial correct in this. Can anyone help find the cause? https://www.codechef.com/viewsolution/1018592665