Nailbiter Interview Question

Write a code for the given Example?