Code unordered when automating submission in codechef using SELENIUM

code - https://ide.codingblocks.com/s/253379
screenshot of the problem -