https://www.mycompiler.io/view/6NRoW5H8EW3