Temenos interview question

Stack, double pointers