Https://online.codingblocks.com/player/6183/content/1114?s=781

https://online.codingblocks.com/player/6183/content/1114?s=781

https://ide.codingblocks.com/#/s/29269
My solution…