Abhishej you can get ur warranty back and stock firmware
Go to sammobile.com to get latest official firmware for your device
You should have installed samsung driver on your pc
Remove your battery sim and memory card
Install the firmware with Odin, you device may fully wiped.
Let me know if it doesnt work ...firstname.lastname@example.org incase of urgency