Can't find out the logic

please check my code