Samsung Electronics Interview Question

Integer reverse using an array