Twist Bioscience interview question

find madian , tree travesal, string substring mapping