Question 1179092
.


The solution is correct.



The logic is fine.



My congratulations (!)



Next time,  when you post similar message,  do not forget to write   "Please check my solution".



Then we,  the tutors,  will have clear understanding what you want from us.



Have a nice day  (!)