Rimes Technologies interview question

two algorithm questions knowledge about python the most difficult project at work