Dell Technologies interview question

c, java, puzzels