^Question of day$

Write a program to Sort an array of 0s, 1s and 2s in ascending order?

class Question_of_day:
def init(self) → None:
self.Array = []

def insert_at_begin(self,data):
    self.Array.insert(0,data)
    return self.Array

def insert_at_pos(self,pos,data):
    if pos >len(self.Array):
        return self.Array
    self.Array.insert(pos,data)
    return self.Array

def insert_at_end(self,data):
    self.Array.append(data)
    return self.Array

def sort(self):
    return sorted(self.Array)

x = Question_of_day()
x.insert_at_pos(0,0)
x.insert_at_begin(1)
x.insert_at_end(3)
x.insert_at_pos(0,2)
x.insert_at_begin(4)
x.insert_at_end(5)
x.sort()

@sriv.ansh
Very impressive way.
Keep Practicing more.