OneMain Financial interview question

BFS