Pergunta de entrevista da empresa Bluestar Software Ltd

Write Java code for specific function without using arrays.