in reply to making code efficient

Please look at the formatting tips before posting your questions. Could you please update ur question ?