Added Q24 solution