bimgrafX Interview Question

Write Code in Python and C?