Ubona interview question

Computation of number using stack