The solutions for all contests in previous sessions are documented in this page.
Please note that the below given solutions are some of many approaches.
Scroll for the solutions.. You can also run in the below editor... HAPPY CODING...!