GGK Tech interview question

code to check super integer using just one loop and one array