Philips interview question

Min stack and find target in array.