I guess i used correct logic still code is not compiling can u please tell the mistake

@anantgovil123 use brackets for correct calculation of mid image