GGK Tech Interview Question

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