4/9 of 3/16 of ?=155
An array is defined to be a 235 array if the number of elements divisible by 2 plus the number of elements divisible by 3 plus the number of elements divisible by 5 plus the number of elements not divisible by 2, 3, or 5 is equal to the number of elements of the array. Write a method named is123Array that returns 1 if its array argument is a 235 array, otherwise it returns 0.
NOTE: The function signature is
intis235Array(int[ ] a)
Mr Sahni employed a worker for a certain work to be done in some days. He pays Rs. 20 to the worker for each working day and the payment is reduced to Rs. 3 for each non working day of the worker. For how many days the worker remain absent from work if at the end of 120 days , he gets Rs. 560 as total remuneration?