Time Complexcity Doubt

At 2:37 prateek bhaiya told that building the heap takes n time. how this is calculated?

@ritik_gajjar hey ritik go through this link this have better explaination about your question function_heapify.