Pergunta de entrevista da empresa Noom

Write a function "updateLeaderBoard(String countryId, int userId, float newWeight)" that updates the leaderboard data and returns the country leaderboard as a string each time a user weighs in.