OneMain Financial interview question

CS algorithms