Skyline AI Interview Question

Write label encoder class in python