Pregunta de entrevista de CyborgIntell

Write the binary search to find the lower bound and upper bound in python