Enterprise Mobility Interview Question

They asked a few questions about Java fundamentals (4 main pillars, and examples) and a quick technical question about how to find the heaviest rock among 30 rocks and a scale. No code just explain how you would do it