Chubb Interview Question

from DSA stack and Queue-based questions were asked. From Array reverse an integer was asked.