Atria Logic Interview Question

How to implement one hot encoding