Help me in solving ATM2 problem

My issue

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	return 0;
}


Problem Link: ATM2 Problem - CodeChef

@harini53
The logic is to check for each index if the a[i] <=the amont of money atms has , then substact the amount of money from that atm.
else
keep going
if its possible to withdraw the money print 1 else print 0