Answer:
It does not violate the first law because the total energy taken is what is used 100J = 25J + 75J
But violates 2nd lawbecause the engine has a higher energy after doing work than the initial for e.g A cold object in contact with a hot one never gets colder, transferring heat to the hot object and making it hotter confirming the second law