Manhattan Associates Interview Question

1) predict output of a program snippet on arrays 2) implement Stack using queue 3) string manipulation like reverse , fund max occurring alphabet count 4) design a rest api with jpa