Pergunta de entrevista da empresa Niveus Solutions

Basic programming question of java, in both technical round there will be 2 coding questions, like prime, sort string, reverse Then 2 puzzles were asked in both rounds