Yuzu Interview Question

a problem which was similar to Implementing atoi