ALTEN Interview Question

Write a program for given number is little endian or big endian