In solidity, the ownerOf function takes a token ID, and returns the address of the person who owns it.
solidity
function ownerOf(uint256 _tokenId) external view returns (address _owner);