Qualcomm Interview Question

Write bfs in graph in c language.