Gate 2024 Paper Solution