UT Dallas interview question

Implement Yen’s algorithm