Skyline AI interview question

Write label encoder class in python