The first implementation was a direct copy-paste of the geeksforgeeks website page . This is my own implementation :D