Persistent Systems Interview Question

Write a program to find perfect number in a range.