Dell Technologies Interview Question

c, java, puzzels