Hi @jindaldhruva,
I am not sure what exactly is the issue here. I will have a word with the team member and will try out to replicate this issue.
Meanwhile you can try this link https://technology.amis.nl/2017/01/29/network-access-to-ubuntu-virtual-box-vm-from-host-laptop/
Or other best option is to use Vagrant instead of Virtualbox. Using vagrant, you not only can ssh into the guest machine but you can also add the synching folder between host and guest machine.
So you can write your code on windows and then you can run the same file inside the ubuntu OS.
Check this thread How to Copy Paste in Ubuntu in Oracle Virtual Box from windows?
Do let me know in case you need any other information.