Superhuman interview question

507. Perfect Number (leetcode tagged)