how can i further reduce this code? only time limit is error this is question 5 (divison 2) of september long challenge