What are you getting instead? Is it a meesage like “It works :)”? if you do then everything is ok, if you don’t then can you show the results of:
ifconfig and route -n in kali
ipconfig in windows
Can you share a screenshot of the Network settings used in VirtualBox for both machines?